namespace Simnova.Collaborate.WinForm
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;
    using Simnova.Collaborate;

    public partial class AccountCreateForm : Form, Simnova.Collaborate.View.IAccountCreate
    {
        private Presenter.AccountCreatePresenter _accountCreatePresenter;

        public AccountCreateForm()
        {
            this.InitializeComponent();
        }

        private void createAccountButton_Click(object sender, EventArgs e)
        {
            this._accountCreatePresenter.CreateAccount();
            this.Close();
        }

        private void AccountCreateForm_Load(object sender, EventArgs e)
        {
            this._accountCreatePresenter = new Presenter.AccountCreatePresenter(this);
        }

        #region IAccountCreate Members

        public string EmailAddress
        {
            get { return this.emailAddressTextBox.Text; }
        }

        public string Password
        {
            get { return this.passwordTextBox.Text; }
        }

        public string ScreenName
        {
            get { return screenNameTextBox.Text; }
        }

        #endregion

        private void cancelButton_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}